package com.tjtt.tdm.system.bean;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 在线用户
 */
public class OnlineUser implements java.io.Serializable {

	private static final long serialVersionUID = 1L;
	private String sessionId;
	private Long userId;
	private String userName;
	private String loginName;
	private String deptName;
	private Date loginDate;
	private String realDate;
	
	
	public String getRealDate() {
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		return sdf.format(loginDate);
	}


	public void setRealDate(String realDate) {
		this.realDate = realDate;
	}


	public Date getLoginDate() {
		return loginDate;
	}

	
	public void setLoginDate(Date loginDate) {
		this.loginDate = loginDate;
	}

	public String getDeptName() {
		return deptName;
	}

	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}

	public String getLoginName() {
		return loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public String getSessionId() {
		return sessionId;
	}

	public void setSessionId(String sessionId) {
		this.sessionId = sessionId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}
}
